package com.tonann.app.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tonann.common.annotation.Excel;
import com.tonann.common.core.domain.BaseEntity;

/**
 * 设备型号文档管理对象 app_device_document
 * 
 * @author tonann
 * @date 2023-07-28
 */
public class AppDeviceDocument extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long documentId;

    /** 设备型号id */
    @Excel(name = "设备型号id")
    private Long modelId;

    /** 设备型号编号 */
    @Excel(name = "设备型号编号")
    private String modelCode;

    /** 设备型号名称 */
    @Excel(name = "设备型号编号")
    private String modelName;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String fileUrl;

    private AppDeviceModel deviceModel;


    public void setDocumentId(Long documentId) 
    {
        this.documentId = documentId;
    }

    public Long getDocumentId() 
    {
        return documentId;
    }
    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setModelCode(String modelCode)
    {
        this.modelCode = modelCode;
    }

    public String getModelCode() 
    {
        return modelCode;
    }
    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public String getModelName()
    {
        return modelName;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public void setDeviceModel(AppDeviceModel deviceModel) {
        this.deviceModel = deviceModel;
    }

    public AppDeviceModel getDeviceModel() {
        return deviceModel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("documentId", getDocumentId())
            .append("deviceId", getModelId())
            .append("deviceCode", getModelCode())
            .append("fileName", getFileName())
            .append("fileType", getFileType())
            .append("fileUrl", getFileUrl())
            .toString();
    }
}
